﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class DALFactory
    {
        private UserDAL userDal = null;
        private BorrowDAL borrowDal = null;
        private RfidDAL rfidDal = null;

        public UserDAL getUserDAL()
        {
            return userDal != null ? userDal : (userDal = new UserDAL());
        }

        public BorrowDAL getBorrowDAL()
        {
            return borrowDal != null ? borrowDal : (borrowDal = new BorrowDAL());
        }

        public RfidDAL getRfidDAL()
        {
            return rfidDal != null ? rfidDal : (rfidDal = new RfidDAL());
        }
    }
}
